package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.RechargeTime;
import cn.wolfcode.crm.query.MemberQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RechargeTimeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RechargeTime record);

    RechargeTime selectByPrimaryKey(Long id);

    List<RechargeTime> selectAll();

    int updateByPrimaryKey(RechargeTime record);

    //高级查询
    List<RechargeTime> query(MemberQueryObject qo);

    Integer count(MemberQueryObject qo);

    Long selectByCardNum(String cardNumber);

    void updateByCardNumber(@Param("carNumber") String cardNumber,@Param("id") Long id);
    //通过卡号查询会员充值的次数
    Integer getTimeByPrimaryKey(String cardNumber);

    void updateTimeByCardNum(@Param("time") int time, @Param("carNumber") String cardNumber);
}